"""Apio's scons handler entry point."""

# -*- coding: utf-8 -*-
# -- This file is part of the Apio project
# -- (C) 2016-2024 FPGAwars
# -- Authors Juan Gonzáles, Jesús Arroyo
# -- License GPLv2

from apio.scons.scons_handler import SconsHandler
from apio.common.common_util import maybe_wait_for_remote_debugger


# -- If system env var APIO_SCONS_DEBUGGER is defined, regardless of its value,
# -- we wait on a remote debugger to be attached, e.g. from Visual Studio Code.
maybe_wait_for_remote_debugger("APIO_SCONS_DEBUGGER")

# -- Service this scons request.
SconsHandler.start()
